{# empty Twig template #}
{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}
    
    {% block content %}
        <div class="col-lg-12">
            <h2>Liste des procédures planifiées</h2>
            <hr align="center" width="90%" size="5">
            <div class="col-lg-12">
                {% for procedure in list_procedureplanifiee %}
                    <div class="panel panel-primary">              
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                {{ procedure.acProcedure.nomProcedure }}
                            </h3>
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-bordered table-hover table-striped tablesorter">  
                                        <thead>
                                            <tr>
                                                <th width="30%">Responsable Procédure <i class="fa fa-sort"></i></th>
                                                <th width="30%">Service <i class="fa fa-sort"></i></th>
                                                <th width="15%">Date de création <i class="fa fa-sort"></i></th>
                                                <th width="15%">Date de modification <i class="fa fa-sort"></i></th>   
                                                <th width="10%"><center>Détail </center></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td>{{ procedure.acProcedure.user.nomUser }} {{ procedure.acProcedure.user.prenomUser }}</td>
                                                <td>{{ procedure.acProcedure.service.nomService }}</td>
                                                <td>{{ procedure.acProcedure.dateCreation|date('d-m-Y') }}</td>
                                                <td>{{ procedure.acProcedure.dateModification|date('d-m-Y') }}</td>   
                                                <td><center><a href="{{ path('cnam_actiman_control_menuVisualiserProc', {'idproc':procedure.id}) }}"><i class="fa fa-eye"> Visualiser</i></a></center></td>
                                            </tr>    
                                        </tbody>
                                </table>
                            </div>
                        </div>
                    </div>              
                {% endfor %}
            </div>
        </div>   
    {% endblock%}
    
{% endblock%}{# empty Twig template #}
